package com.ynet.middleground.approve.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Service;

import com.ynet.middleground.approve.constant.WorkflowConstants;

/**
 * @author liulx
 * @description 移动审批处理标志监听器
 * @create 2021-03-17 16:52
 */
@DependsOn("springContextUtils")
@Service
public class TaskMobileListener extends BaseListener implements TaskListener {

    @Override
    public void notify(DelegateTask delegateTask) {
        delegateTask.setVariableLocal(WorkflowConstants.FLOW_TASK_MOBILE_PROCESS, true);
    }

}
